<?php
$tdatagsp_commercial_details_report=array();
	$tdatagsp_commercial_details_report[".NumberOfChars"]=80; 
	$tdatagsp_commercial_details_report[".ShortName"]="gsp_commercial_details_report";
	$tdatagsp_commercial_details_report[".OwnerID"]="";
	$tdatagsp_commercial_details_report[".OriginalTable"]="gsp_commercial_details";


	
//	field labels
$fieldLabelsgsp_commercial_details_report = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsgsp_commercial_details_report["English"]=array();
	$fieldToolTipsgsp_commercial_details_report["English"]=array();
	$fieldLabelsgsp_commercial_details_report["English"]["id"] = "Id";
	$fieldToolTipsgsp_commercial_details_report["English"]["id"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["bcontact_id"] = "Buyer";
	$fieldToolTipsgsp_commercial_details_report["English"]["bcontact_id"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["account_id"] = "Account";
	$fieldToolTipsgsp_commercial_details_report["English"]["account_id"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["ship_mode_id"] = "Ship Mode ";
	$fieldToolTipsgsp_commercial_details_report["English"]["ship_mode_id"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["ship_from_city"] = "Ship From City";
	$fieldToolTipsgsp_commercial_details_report["English"]["ship_from_city"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["ship_from_country"] = "Ship From Country";
	$fieldToolTipsgsp_commercial_details_report["English"]["ship_from_country"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["ship_to_country"] = "Ship To Country";
	$fieldToolTipsgsp_commercial_details_report["English"]["ship_to_country"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["ship_to_port"] = "Ship To Port";
	$fieldToolTipsgsp_commercial_details_report["English"]["ship_to_port"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["ship_date"] = "Ship Date";
	$fieldToolTipsgsp_commercial_details_report["English"]["ship_date"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["remarks"] = "Remarks";
	$fieldToolTipsgsp_commercial_details_report["English"]["remarks"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["support_documents"] = "Support Documents";
	$fieldToolTipsgsp_commercial_details_report["English"]["support_documents"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["origin_requirements"] = "Origin Requirements";
	$fieldToolTipsgsp_commercial_details_report["English"]["origin_requirements"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["book_nos"] = "Book Nos";
	$fieldToolTipsgsp_commercial_details_report["English"]["book_nos"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["ship_status"] = "Ship Status";
	$fieldToolTipsgsp_commercial_details_report["English"]["ship_status"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["status"] = "Status";
	$fieldToolTipsgsp_commercial_details_report["English"]["status"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["signatory"] = "Signatory";
	$fieldToolTipsgsp_commercial_details_report["English"]["signatory"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["pre_carriage_mode"] = "Pre Carriage Mode";
	$fieldToolTipsgsp_commercial_details_report["English"]["pre_carriage_mode"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["pre_carriage_from"] = "Pre Carriage From";
	$fieldToolTipsgsp_commercial_details_report["English"]["pre_carriage_from"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["pre_carriage_to"] = "Pre Carriage To";
	$fieldToolTipsgsp_commercial_details_report["English"]["pre_carriage_to"] = "";
	$fieldLabelsgsp_commercial_details_report["English"]["ref_id"] = "Ref Id";
	$fieldToolTipsgsp_commercial_details_report["English"]["ref_id"] = "";
	if (count($fieldToolTipsgsp_commercial_details_report["English"])){
		$tdatagsp_commercial_details_report[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["bcontact_id"] = "Bcontact Id";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["bcontact_id"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["account_id"] = "Account Id";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["account_id"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["ship_mode_id"] = "Ship Mode Id";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["ship_mode_id"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["ship_from_city"] = "Ship From City";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["ship_from_city"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["ship_from_country"] = "Ship From Country";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["ship_from_country"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["ship_to_country"] = "Ship To Country";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["ship_to_country"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["ship_to_port"] = "Ship To Port";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["ship_to_port"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["ship_date"] = "Ship Date";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["ship_date"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["remarks"] = "Remarks";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["remarks"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["support_documents"] = "Support Documents";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["support_documents"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["origin_requirements"] = "Origin Requirements";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["origin_requirements"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["book_nos"] = "Book Nos";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["book_nos"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["ship_status"] = "Ship Status";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["ship_status"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["status"] = "Status";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["status"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["signatory"] = "Signatory";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["signatory"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["pre_carriage_mode"] = "Pre Carriage Mode";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["pre_carriage_mode"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["pre_carriage_from"] = "Pre Carriage From";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["pre_carriage_from"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["pre_carriage_to"] = "Pre Carriage To";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["pre_carriage_to"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["ref_id"] = "Ref Id";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"]["ref_id"] = "";
	if (count($fieldToolTipsgsp_commercial_details_report["Chinese (Hong Kong S.A.R.)"])){
		$tdatagsp_commercial_details_report[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]=array();
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]=array();
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["bcontact_id"] = "Bcontact Id";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["bcontact_id"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["account_id"] = "Account Id";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["account_id"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["ship_mode_id"] = "Ship Mode Id";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["ship_mode_id"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["ship_from_city"] = "Ship From City";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["ship_from_city"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["ship_from_country"] = "Ship From Country";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["ship_from_country"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["ship_to_country"] = "Ship To Country";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["ship_to_country"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["ship_to_port"] = "Ship To Port";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["ship_to_port"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["ship_date"] = "Ship Date";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["ship_date"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["remarks"] = "Remarks";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["remarks"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["support_documents"] = "Support Documents";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["support_documents"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["origin_requirements"] = "Origin Requirements";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["origin_requirements"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["book_nos"] = "Book Nos";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["book_nos"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["ship_status"] = "Ship Status";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["ship_status"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["status"] = "Status";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["status"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["signatory"] = "Signatory";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["signatory"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["pre_carriage_mode"] = "Pre Carriage Mode";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["pre_carriage_mode"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["pre_carriage_from"] = "Pre Carriage From";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["pre_carriage_from"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["pre_carriage_to"] = "Pre Carriage To";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["pre_carriage_to"] = "";
	$fieldLabelsgsp_commercial_details_report["Chinese (Taiwan)"]["ref_id"] = "Ref Id";
	$fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"]["ref_id"] = "";
	if (count($fieldToolTipsgsp_commercial_details_report["Chinese (Taiwan)"])){
		$tdatagsp_commercial_details_report[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelsgsp_commercial_details_report["French"]=array();
	$fieldToolTipsgsp_commercial_details_report["French"]=array();
	$fieldLabelsgsp_commercial_details_report["French"]["id"] = "Id";
	$fieldToolTipsgsp_commercial_details_report["French"]["id"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["bcontact_id"] = "Bcontact Id";
	$fieldToolTipsgsp_commercial_details_report["French"]["bcontact_id"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["account_id"] = "Account Id";
	$fieldToolTipsgsp_commercial_details_report["French"]["account_id"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["ship_mode_id"] = "Ship Mode Id";
	$fieldToolTipsgsp_commercial_details_report["French"]["ship_mode_id"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["ship_from_city"] = "Ship From City";
	$fieldToolTipsgsp_commercial_details_report["French"]["ship_from_city"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["ship_from_country"] = "Ship From Country";
	$fieldToolTipsgsp_commercial_details_report["French"]["ship_from_country"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["ship_to_country"] = "Ship To Country";
	$fieldToolTipsgsp_commercial_details_report["French"]["ship_to_country"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["ship_to_port"] = "Ship To Port";
	$fieldToolTipsgsp_commercial_details_report["French"]["ship_to_port"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["ship_date"] = "Ship Date";
	$fieldToolTipsgsp_commercial_details_report["French"]["ship_date"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["remarks"] = "Remarks";
	$fieldToolTipsgsp_commercial_details_report["French"]["remarks"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["support_documents"] = "Support Documents";
	$fieldToolTipsgsp_commercial_details_report["French"]["support_documents"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["origin_requirements"] = "Origin Requirements";
	$fieldToolTipsgsp_commercial_details_report["French"]["origin_requirements"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["book_nos"] = "Book Nos";
	$fieldToolTipsgsp_commercial_details_report["French"]["book_nos"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["ship_status"] = "Ship Status";
	$fieldToolTipsgsp_commercial_details_report["French"]["ship_status"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["status"] = "Status";
	$fieldToolTipsgsp_commercial_details_report["French"]["status"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["signatory"] = "Signatory";
	$fieldToolTipsgsp_commercial_details_report["French"]["signatory"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["pre_carriage_mode"] = "Pre Carriage Mode";
	$fieldToolTipsgsp_commercial_details_report["French"]["pre_carriage_mode"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["pre_carriage_from"] = "Pre Carriage From";
	$fieldToolTipsgsp_commercial_details_report["French"]["pre_carriage_from"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["pre_carriage_to"] = "Pre Carriage To";
	$fieldToolTipsgsp_commercial_details_report["French"]["pre_carriage_to"] = "";
	$fieldLabelsgsp_commercial_details_report["French"]["ref_id"] = "Ref Id";
	$fieldToolTipsgsp_commercial_details_report["French"]["ref_id"] = "";
	if (count($fieldToolTipsgsp_commercial_details_report["French"])){
		$tdatagsp_commercial_details_report[".isUseToolTips"]=true;
	}
}


	
	$tdatagsp_commercial_details_report[".NCSearch"]=true;

	

$tdatagsp_commercial_details_report[".shortTableName"] = "gsp_commercial_details_report";
$tdatagsp_commercial_details_report[".nSecOptions"] = 0;
$tdatagsp_commercial_details_report[".recsPerRowList"] = 1;	
$tdatagsp_commercial_details_report[".tableGroupBy"] = "0";
$tdatagsp_commercial_details_report[".mainTableOwnerID"] = "";
$tdatagsp_commercial_details_report[".moveNext"] = 1;




$tdatagsp_commercial_details_report[".showAddInPopup"] = false;

$tdatagsp_commercial_details_report[".showEditInPopup"] = false;

$tdatagsp_commercial_details_report[".showViewInPopup"] = false;


$tdatagsp_commercial_details_report[".fieldsForRegister"] = array();

$tdatagsp_commercial_details_report[".listAjax"] = false;

	$tdatagsp_commercial_details_report[".audit"] = false;

	$tdatagsp_commercial_details_report[".locking"] = false;
	
$tdatagsp_commercial_details_report[".listIcons"] = true;
$tdatagsp_commercial_details_report[".edit"] = true;
$tdatagsp_commercial_details_report[".inlineEdit"] = true;
$tdatagsp_commercial_details_report[".view"] = true;

$tdatagsp_commercial_details_report[".exportTo"] = true;

$tdatagsp_commercial_details_report[".printFriendly"] = true;

$tdatagsp_commercial_details_report[".delete"] = true;

$tdatagsp_commercial_details_report[".showSimpleSearchOptions"] = false;

$tdatagsp_commercial_details_report[".showSearchPanel"] = true;


$tdatagsp_commercial_details_report[".isUseAjaxSuggest"] = true;



// button handlers file names

$tdatagsp_commercial_details_report[".addPageEvents"] = false;

$tdatagsp_commercial_details_report[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatagsp_commercial_details_report[".isUseCalendarForSearch"] = true;

// use timepicker for search panel
$tdatagsp_commercial_details_report[".isUseTimeForSearch"] = false;

$tdatagsp_commercial_details_report[".isUseiBox"] = false;



$tdatagsp_commercial_details_report[".isUseInlineJs"] = $tdatagsp_commercial_details_report[".isUseInlineAdd"] || $tdatagsp_commercial_details_report[".isUseInlineEdit"];

$tdatagsp_commercial_details_report[".allSearchFields"] = array();

$tdatagsp_commercial_details_report[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "id";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "bcontact_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bcontact_id", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "bcontact_id";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "account_id";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "ship_mode_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_mode_id", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "ship_mode_id";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "ship_from_city";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_from_city", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "ship_from_city";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "ship_from_country";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_from_country", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "ship_from_country";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "ship_to_country";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_to_country", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "ship_to_country";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "ship_to_port";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_to_port", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "ship_to_port";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "ship_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_date", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "ship_date";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "remarks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("remarks", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "remarks";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "support_documents";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("support_documents", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "support_documents";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "origin_requirements";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("origin_requirements", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "origin_requirements";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "book_nos";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("book_nos", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "book_nos";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "ship_status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_status", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "ship_status";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("status", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "status";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "signatory";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("signatory", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "signatory";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "pre_carriage_mode";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_mode", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "pre_carriage_mode";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "pre_carriage_from";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_from", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "pre_carriage_from";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "pre_carriage_to";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_to", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "pre_carriage_to";	
}
$tdatagsp_commercial_details_report[".globSearchFields"][] = "ref_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ref_id", $tdatagsp_commercial_details_report[".allSearchFields"]))
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "ref_id";	
}


$tdatagsp_commercial_details_report[".googleLikeFields"][] = "id";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "bcontact_id";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "account_id";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "ship_mode_id";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "ship_from_city";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "ship_from_country";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "ship_to_country";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "ship_to_port";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "ship_date";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "remarks";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "support_documents";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "origin_requirements";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "book_nos";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "ship_status";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "status";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "signatory";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "pre_carriage_mode";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "pre_carriage_from";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "pre_carriage_to";
$tdatagsp_commercial_details_report[".googleLikeFields"][] = "ref_id";



$tdatagsp_commercial_details_report[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "id";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "bcontact_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bcontact_id", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "bcontact_id";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "account_id";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "ship_mode_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_mode_id", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "ship_mode_id";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "ship_from_city";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_from_city", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "ship_from_city";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "ship_from_country";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_from_country", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "ship_from_country";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "ship_to_country";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_to_country", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "ship_to_country";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "ship_to_port";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_to_port", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "ship_to_port";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "ship_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_date", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "ship_date";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "remarks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("remarks", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "remarks";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "support_documents";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("support_documents", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "support_documents";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "origin_requirements";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("origin_requirements", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "origin_requirements";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "book_nos";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("book_nos", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "book_nos";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "ship_status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_status", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "ship_status";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("status", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "status";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "signatory";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("signatory", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "signatory";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "pre_carriage_mode";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_mode", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "pre_carriage_mode";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "pre_carriage_from";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_from", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "pre_carriage_from";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "pre_carriage_to";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_to", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "pre_carriage_to";	
}
$tdatagsp_commercial_details_report[".advSearchFields"][] = "ref_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ref_id", $tdatagsp_commercial_details_report[".allSearchFields"])) 
{
	$tdatagsp_commercial_details_report[".allSearchFields"][] = "ref_id";	
}

$tdatagsp_commercial_details_report[".isTableType"] = "report";


	

$tdatagsp_commercial_details_report[".isDisplayLoading"] = true;

$tdatagsp_commercial_details_report[".isResizeColumns"] = false;






$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatagsp_commercial_details_report[".strOrderBy"] = $gstrOrderBy;
	
$tdatagsp_commercial_details_report[".orderindexes"] = array();

$tdatagsp_commercial_details_report[".sqlHead"] = "SELECT id,   bcontact_id,   account_id,   ship_mode_id,   ship_from_city,   ship_from_country,   ship_to_country,   ship_to_port,   ship_date,   remarks,   support_documents,   origin_requirements,   book_nos,   ship_status,   status,   signatory,   pre_carriage_mode,   pre_carriage_from,   pre_carriage_to,   ref_id";
$tdatagsp_commercial_details_report[".sqlFrom"] = "FROM gsp_commercial_details";
$tdatagsp_commercial_details_report[".sqlWhereExpr"] = "";
$tdatagsp_commercial_details_report[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatagsp_commercial_details_report[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatagsp_commercial_details_report[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatagsp_commercial_details_report[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["id"]=$fdata;
//	bcontact_id
	$fdata = array();
	$fdata["strName"] = "bcontact_id";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Buyer"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "bcontact_id";
	
		$fdata["FullName"]= "bcontact_id";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["bcontact_id"]=$fdata;
//	account_id
	$fdata = array();
	$fdata["strName"] = "account_id";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Account"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "account_id";
	
		$fdata["FullName"]= "account_id";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["account_id"]=$fdata;
//	ship_mode_id
	$fdata = array();
	$fdata["strName"] = "ship_mode_id";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship Mode "; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_mode_id";
	
		$fdata["FullName"]= "ship_mode_id";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["ship_mode_id"]=$fdata;
//	ship_from_city
	$fdata = array();
	$fdata["strName"] = "ship_from_city";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship From City"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_from_city";
	
		$fdata["FullName"]= "ship_from_city";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["ship_from_city"]=$fdata;
//	ship_from_country
	$fdata = array();
	$fdata["strName"] = "ship_from_country";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship From Country"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_from_country";
	
		$fdata["FullName"]= "ship_from_country";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["ship_from_country"]=$fdata;
//	ship_to_country
	$fdata = array();
	$fdata["strName"] = "ship_to_country";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship To Country"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_to_country";
	
		$fdata["FullName"]= "ship_to_country";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["ship_to_country"]=$fdata;
//	ship_to_port
	$fdata = array();
	$fdata["strName"] = "ship_to_port";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship To Port"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_to_port";
	
		$fdata["FullName"]= "ship_to_port";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["ship_to_port"]=$fdata;
//	ship_date
	$fdata = array();
	$fdata["strName"] = "ship_date";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_date";
	
		$fdata["FullName"]= "ship_date";
	
		
		
		
		
		
				$fdata["Index"]= 9;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["ship_date"]=$fdata;
//	remarks
	$fdata = array();
	$fdata["strName"] = "remarks";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Remarks"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "remarks";
	
		$fdata["FullName"]= "remarks";
	
		
		
		
		
		
				$fdata["Index"]= 10;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["remarks"]=$fdata;
//	support_documents
	$fdata = array();
	$fdata["strName"] = "support_documents";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Support Documents"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "support_documents";
	
		$fdata["FullName"]= "support_documents";
	
		
		
		
		
		
				$fdata["Index"]= 11;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["support_documents"]=$fdata;
//	origin_requirements
	$fdata = array();
	$fdata["strName"] = "origin_requirements";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Origin Requirements"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "origin_requirements";
	
		$fdata["FullName"]= "origin_requirements";
	
		
		
		
		
		
				$fdata["Index"]= 12;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["origin_requirements"]=$fdata;
//	book_nos
	$fdata = array();
	$fdata["strName"] = "book_nos";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Book Nos"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "book_nos";
	
		$fdata["FullName"]= "book_nos";
	
		
		
		
		
		
				$fdata["Index"]= 13;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["book_nos"]=$fdata;
//	ship_status
	$fdata = array();
	$fdata["strName"] = "ship_status";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship Status"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_status";
	
		$fdata["FullName"]= "ship_status";
	
		
		
		
		
		
				$fdata["Index"]= 14;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["ship_status"]=$fdata;
//	status
	$fdata = array();
	$fdata["strName"] = "status";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Status"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "status";
	
		$fdata["FullName"]= "status";
	
		
		
		
		
		
				$fdata["Index"]= 15;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["status"]=$fdata;
//	signatory
	$fdata = array();
	$fdata["strName"] = "signatory";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Signatory"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "signatory";
	
		$fdata["FullName"]= "signatory";
	
		
		
		
		
		
				$fdata["Index"]= 16;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["signatory"]=$fdata;
//	pre_carriage_mode
	$fdata = array();
	$fdata["strName"] = "pre_carriage_mode";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Pre Carriage Mode"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "pre_carriage_mode";
	
		$fdata["FullName"]= "pre_carriage_mode";
	
		
		
		
		
		
				$fdata["Index"]= 17;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["pre_carriage_mode"]=$fdata;
//	pre_carriage_from
	$fdata = array();
	$fdata["strName"] = "pre_carriage_from";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Pre Carriage From"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "pre_carriage_from";
	
		$fdata["FullName"]= "pre_carriage_from";
	
		
		
		
		
		
				$fdata["Index"]= 18;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["pre_carriage_from"]=$fdata;
//	pre_carriage_to
	$fdata = array();
	$fdata["strName"] = "pre_carriage_to";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Pre Carriage To"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "pre_carriage_to";
	
		$fdata["FullName"]= "pre_carriage_to";
	
		
		
		
		
		
				$fdata["Index"]= 19;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatagsp_commercial_details_report["pre_carriage_to"]=$fdata;
//	ref_id
	$fdata = array();
	$fdata["strName"] = "ref_id";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ref Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ref_id";
	
		$fdata["FullName"]= "ref_id";
	
		
		
		
		
		
				$fdata["Index"]= 20;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				
		
		
		
		
		
			$tdatagsp_commercial_details_report["ref_id"]=$fdata;

	
$tables_data["gsp_commercial_details_report"]=&$tdatagsp_commercial_details_report;
$field_labels["gsp_commercial_details_report"] = &$fieldLabelsgsp_commercial_details_report;
$fieldToolTips["gsp_commercial_details_report"] = &$fieldToolTipsgsp_commercial_details_report;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["gsp_commercial_details_report"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["gsp_commercial_details_report"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto105=array();
$proto105["m_strHead"] = "SELECT";
$proto105["m_strFieldList"] = "id,   bcontact_id,   account_id,   ship_mode_id,   ship_from_city,   ship_from_country,   ship_to_country,   ship_to_port,   ship_date,   remarks,   support_documents,   origin_requirements,   book_nos,   ship_status,   status,   signatory,   pre_carriage_mode,   pre_carriage_from,   pre_carriage_to,   ref_id";
$proto105["m_strFrom"] = "FROM gsp_commercial_details";
$proto105["m_strWhere"] = "";
$proto105["m_strOrderBy"] = "";
$proto105["m_strTail"] = "";
$proto106=array();
$proto106["m_sql"] = "";
$proto106["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto106["m_column"]=$obj;
$proto106["m_contained"] = array();
$proto106["m_strCase"] = "";
$proto106["m_havingmode"] = "0";
$proto106["m_inBrackets"] = "0";
$proto106["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto106);

$proto105["m_where"] = $obj;
$proto108=array();
$proto108["m_sql"] = "";
$proto108["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto108["m_column"]=$obj;
$proto108["m_contained"] = array();
$proto108["m_strCase"] = "";
$proto108["m_havingmode"] = "0";
$proto108["m_inBrackets"] = "0";
$proto108["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto108);

$proto105["m_having"] = $obj;
$proto105["m_fieldlist"] = array();
						$proto110=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "gsp_commercial_details"
));

$proto110["m_expr"]=$obj;
$proto110["m_alias"] = "";
$obj = new SQLFieldListItem($proto110);

$proto105["m_fieldlist"][]=$obj;
						$proto112=array();
			$obj = new SQLField(array(
	"m_strName" => "bcontact_id",
	"m_strTable" => "gsp_commercial_details"
));

$proto112["m_expr"]=$obj;
$proto112["m_alias"] = "";
$obj = new SQLFieldListItem($proto112);

$proto105["m_fieldlist"][]=$obj;
						$proto114=array();
			$obj = new SQLField(array(
	"m_strName" => "account_id",
	"m_strTable" => "gsp_commercial_details"
));

$proto114["m_expr"]=$obj;
$proto114["m_alias"] = "";
$obj = new SQLFieldListItem($proto114);

$proto105["m_fieldlist"][]=$obj;
						$proto116=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_mode_id",
	"m_strTable" => "gsp_commercial_details"
));

$proto116["m_expr"]=$obj;
$proto116["m_alias"] = "";
$obj = new SQLFieldListItem($proto116);

$proto105["m_fieldlist"][]=$obj;
						$proto118=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_from_city",
	"m_strTable" => "gsp_commercial_details"
));

$proto118["m_expr"]=$obj;
$proto118["m_alias"] = "";
$obj = new SQLFieldListItem($proto118);

$proto105["m_fieldlist"][]=$obj;
						$proto120=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_from_country",
	"m_strTable" => "gsp_commercial_details"
));

$proto120["m_expr"]=$obj;
$proto120["m_alias"] = "";
$obj = new SQLFieldListItem($proto120);

$proto105["m_fieldlist"][]=$obj;
						$proto122=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_to_country",
	"m_strTable" => "gsp_commercial_details"
));

$proto122["m_expr"]=$obj;
$proto122["m_alias"] = "";
$obj = new SQLFieldListItem($proto122);

$proto105["m_fieldlist"][]=$obj;
						$proto124=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_to_port",
	"m_strTable" => "gsp_commercial_details"
));

$proto124["m_expr"]=$obj;
$proto124["m_alias"] = "";
$obj = new SQLFieldListItem($proto124);

$proto105["m_fieldlist"][]=$obj;
						$proto126=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_date",
	"m_strTable" => "gsp_commercial_details"
));

$proto126["m_expr"]=$obj;
$proto126["m_alias"] = "";
$obj = new SQLFieldListItem($proto126);

$proto105["m_fieldlist"][]=$obj;
						$proto128=array();
			$obj = new SQLField(array(
	"m_strName" => "remarks",
	"m_strTable" => "gsp_commercial_details"
));

$proto128["m_expr"]=$obj;
$proto128["m_alias"] = "";
$obj = new SQLFieldListItem($proto128);

$proto105["m_fieldlist"][]=$obj;
						$proto130=array();
			$obj = new SQLField(array(
	"m_strName" => "support_documents",
	"m_strTable" => "gsp_commercial_details"
));

$proto130["m_expr"]=$obj;
$proto130["m_alias"] = "";
$obj = new SQLFieldListItem($proto130);

$proto105["m_fieldlist"][]=$obj;
						$proto132=array();
			$obj = new SQLField(array(
	"m_strName" => "origin_requirements",
	"m_strTable" => "gsp_commercial_details"
));

$proto132["m_expr"]=$obj;
$proto132["m_alias"] = "";
$obj = new SQLFieldListItem($proto132);

$proto105["m_fieldlist"][]=$obj;
						$proto134=array();
			$obj = new SQLField(array(
	"m_strName" => "book_nos",
	"m_strTable" => "gsp_commercial_details"
));

$proto134["m_expr"]=$obj;
$proto134["m_alias"] = "";
$obj = new SQLFieldListItem($proto134);

$proto105["m_fieldlist"][]=$obj;
						$proto136=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_status",
	"m_strTable" => "gsp_commercial_details"
));

$proto136["m_expr"]=$obj;
$proto136["m_alias"] = "";
$obj = new SQLFieldListItem($proto136);

$proto105["m_fieldlist"][]=$obj;
						$proto138=array();
			$obj = new SQLField(array(
	"m_strName" => "status",
	"m_strTable" => "gsp_commercial_details"
));

$proto138["m_expr"]=$obj;
$proto138["m_alias"] = "";
$obj = new SQLFieldListItem($proto138);

$proto105["m_fieldlist"][]=$obj;
						$proto140=array();
			$obj = new SQLField(array(
	"m_strName" => "signatory",
	"m_strTable" => "gsp_commercial_details"
));

$proto140["m_expr"]=$obj;
$proto140["m_alias"] = "";
$obj = new SQLFieldListItem($proto140);

$proto105["m_fieldlist"][]=$obj;
						$proto142=array();
			$obj = new SQLField(array(
	"m_strName" => "pre_carriage_mode",
	"m_strTable" => "gsp_commercial_details"
));

$proto142["m_expr"]=$obj;
$proto142["m_alias"] = "";
$obj = new SQLFieldListItem($proto142);

$proto105["m_fieldlist"][]=$obj;
						$proto144=array();
			$obj = new SQLField(array(
	"m_strName" => "pre_carriage_from",
	"m_strTable" => "gsp_commercial_details"
));

$proto144["m_expr"]=$obj;
$proto144["m_alias"] = "";
$obj = new SQLFieldListItem($proto144);

$proto105["m_fieldlist"][]=$obj;
						$proto146=array();
			$obj = new SQLField(array(
	"m_strName" => "pre_carriage_to",
	"m_strTable" => "gsp_commercial_details"
));

$proto146["m_expr"]=$obj;
$proto146["m_alias"] = "";
$obj = new SQLFieldListItem($proto146);

$proto105["m_fieldlist"][]=$obj;
						$proto148=array();
			$obj = new SQLField(array(
	"m_strName" => "ref_id",
	"m_strTable" => "gsp_commercial_details"
));

$proto148["m_expr"]=$obj;
$proto148["m_alias"] = "";
$obj = new SQLFieldListItem($proto148);

$proto105["m_fieldlist"][]=$obj;
$proto105["m_fromlist"] = array();
												$proto150=array();
$proto150["m_link"] = "SQLL_MAIN";
			$proto151=array();
$proto151["m_strName"] = "gsp_commercial_details";
$proto151["m_columns"] = array();
$proto151["m_columns"][] = "id";
$proto151["m_columns"][] = "bcontact_id";
$proto151["m_columns"][] = "account_id";
$proto151["m_columns"][] = "ship_mode_id";
$proto151["m_columns"][] = "ship_from_city";
$proto151["m_columns"][] = "ship_from_country";
$proto151["m_columns"][] = "ship_to_country";
$proto151["m_columns"][] = "ship_to_port";
$proto151["m_columns"][] = "ship_date";
$proto151["m_columns"][] = "remarks";
$proto151["m_columns"][] = "support_documents";
$proto151["m_columns"][] = "origin_requirements";
$proto151["m_columns"][] = "book_nos";
$proto151["m_columns"][] = "ship_status";
$proto151["m_columns"][] = "status";
$proto151["m_columns"][] = "signatory";
$proto151["m_columns"][] = "pre_carriage_mode";
$proto151["m_columns"][] = "pre_carriage_from";
$proto151["m_columns"][] = "pre_carriage_to";
$proto151["m_columns"][] = "ref_id";
$obj = new SQLTable($proto151);

$proto150["m_table"] = $obj;
$proto150["m_alias"] = "";
$proto152=array();
$proto152["m_sql"] = "";
$proto152["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto152["m_column"]=$obj;
$proto152["m_contained"] = array();
$proto152["m_strCase"] = "";
$proto152["m_havingmode"] = "0";
$proto152["m_inBrackets"] = "0";
$proto152["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto152);

$proto150["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto150);

$proto105["m_fromlist"][]=$obj;
$proto105["m_groupby"] = array();
$proto105["m_orderby"] = array();
$obj = new SQLQuery($proto105);

$queryData_gsp_commercial_details_report = $obj;
$tdatagsp_commercial_details_report[".sqlquery"] = $queryData_gsp_commercial_details_report;

$tableEvents["gsp_commercial_details_report"] = new eventsBase;

?>
